package com.jiang.blackjack.card

import com.jiang.blackjack.R

/**
 *
 * @ProjectName:    BlackJack
 * @ClassName:      SpadeCard
 * @Description:     java类作用描述
 * @Author:         江
 * @CreateDate:     2020/3/1 13:52
 */
class SpadeCard(faceSeed: Int) : Card(faceSeed) {
    override fun initIcon() {
        when (faceSeed + 1) {
            1 -> resIcon = CardIconHolder.SPADE_A
            2 -> resIcon = CardIconHolder.SPADE_2
            3 -> resIcon = CardIconHolder.SPADE_3
            4 -> resIcon = CardIconHolder.SPADE_4
            5 -> resIcon = CardIconHolder.SPADE_5
            6 -> resIcon = CardIconHolder.SPADE_6
            7 -> resIcon = CardIconHolder.SPADE_7
            8 -> resIcon = CardIconHolder.SPADE_8
            9 -> resIcon = CardIconHolder.SPADE_9
            10 -> resIcon = CardIconHolder.SPADE_10
            11 -> resIcon = CardIconHolder.SPADE_J
            12 -> resIcon = CardIconHolder.SPADE_Q
            13 -> resIcon = CardIconHolder.SPADE_K
            else -> CardIconHolder.DEFAULT
        }
    }
}